package main

import (
	"fmt"
	"time"
)

func main() {
	pattern := "2006-01-02 15:04:05.000"
	pattern2 := "2006-01-02 15:04:05.999"
	now := time.Now()
	fmt.Println(now)
	fmt.Println(now.Unix())
	fmt.Printf("year=%v, month=%v, day=%v\n", now.Year(), now.Month(), now.Day())
	fmt.Println(now.Format(pattern))
	fmt.Println(now.Format(pattern2))
}
